package com.sap.sap_mangers.until;

import java.util.Random;

/**
 * @author 阿东
 * @date 2022/8/27 [17:26]
 */
public class RandomUntil {
    /**
     * 获取随机的数字川
     *
     * @param length 数字串长度
     * @return 随机数字串
     */
    public static String getRandomNum(int length) {
        Random random = new Random();
        StringBuilder code = new StringBuilder();
        for (int k = 0; k < length; k++) {
            code.append(random.nextInt(9));
        }
        return code.toString();
    }
}
